package cn.cs.service;

import cn.cs.mapper.UserInformationWebMapper;
import cn.cs.mapper.UserRepairApplyMapper;
import cn.cs.pojo.AppOrder;
import cn.cs.pojo.UserInformationWeb;
import cn.cs.pojo.UserRepairApply;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@RestController
public class UserInformationWebService {

    @Resource
    private UserInformationWebMapper userInformationWebMapper;

    @RequestMapping(value = "/getUserInformationWebById", method = RequestMethod.POST)
    public UserInformationWeb getUserInformationWebById(@RequestParam("id") String id) throws Exception{
        return userInformationWebMapper.getUserInformationWebById(id);
    }

    @RequestMapping(value = "/getUserInformationWebListByMap", method = RequestMethod.POST)
    public List<UserInformationWeb> getUserInformationWebListByMap(@RequestBody Map<String, Object> param) throws Exception{
        return userInformationWebMapper.getUserInformationWebListByMap(param);
    }

    @RequestMapping(value = "/getUserInformationWebCountByMap", method = RequestMethod.POST)
    public Integer getUserInformationWebCountByMap(@RequestBody Map<String, Object> param) throws Exception{
        return userInformationWebMapper.getUserInformationWebCountByMap(param);
    }

    @RequestMapping(value = "/insertUserInformationWeb", method = RequestMethod.POST)
    public Integer insertUserInformationWeb(@RequestBody UserInformationWeb userInformationWeb) throws Exception{
        return userInformationWebMapper.insertUserInformationWeb(userInformationWeb);
    }

    @RequestMapping(value = "/updateUserInformationWeb", method = RequestMethod.POST)
    public Integer updateUserInformationWeb(@RequestBody UserInformationWeb userInformationWeb) throws Exception{
        return userInformationWebMapper.updateUserInformationWeb(userInformationWeb);
    }

    @RequestMapping(value = "/deleteUserInformationWebById", method = RequestMethod.POST)
    public Integer deleteUserInformationWebById(@RequestParam("id") String id) throws Exception{
        return userInformationWebMapper.deleteUserInformationWebById(id);
    }



}
